<%@ include file="/taglibs.jsp"%>

<script type="text/javascript">
	Y.util.Event.onDOMReady(function() {
		Context.VigenciaCatalog = [];
		Context.VigenciaCatalog.push({
			label : 'Activo',
			value : 'A'
		});
		Context.VigenciaCatalog.push({
			label : 'Inactivo',
			value : 'I'
		});
		
	    Context.Registros = '<s:url action="connections-async" namespace="/" includeParams="none" />';
	    Context.ValidarURL = '<s:url action="connections-async" method="validar" namespace="/" includeParams="none" />';
	    
	});
		

</script>

<script type="text/javascript" src="${ctx}/connections/include/connections.js?version=${version}"></script>
<script type="text/javascript" src="${ctx}/connections/include/connections-dtbl.js?version=${version}"></script>


<div align="left">
	<jsp:include page="connections-dtbl.jsp" />
</div>

<div id="dialog1" style="visibility: hidden;">
	<div class="hd">Editar</div>
	<div class="bd" align="center">
		<s:form theme="simple" id="editarform">
			<input type="hidden" id="id" value="" />
			<input type="hidden" id="nuevo"  value="" />
			<input type="hidden" id="vigente"  value="" />
			<input type="hidden" id="recordid" name="recordid" value="" />
			<fieldset>
				<table class="dialogtable">
					<tr>
						<td>ID:</td>
						<td>
							<s:textfield  cssStyle="width:205px;" id="idConnection" name="connection.idConnection" maxLength="50"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.idConnection" style="color:#FF0000"></div>
						</td>
					</tr>
					<tr>
						<td>Pais:</td>
						<td>
							<s:select cssStyle="width:200px;" id="idCountry" name="connection.idCountry" list="countries" listKey="keyTxt" listValue="value" emptyOption="false" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.idCountry" style="color:#FF0000" ></div>
						</td>
					</tr>
					<tr>
						<td>Usuario:</td>
						<td>
							<s:textfield  cssStyle="width:205px;" id="username" name="connection.username" maxLength="50"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.username" style="color:#FF0000"></div>
						</td>
					</tr>
					<tr>
						<td>Password:</td>
						<td>
							<s:textfield cssStyle="width:205px;" id="password" name="connection.password" maxLength="100"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.password" style="color:#FF0000" ></div>
						</td>
					</tr>
					<tr>
						<td>URL:</td>
						<td>
							<s:textfield cssStyle="width:205px;" id="url" name="connection.url" maxLength="100"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.url" style="color:#FF0000"></div>
						</td>
					</tr>
					
				</table>
			</fieldset>
		</s:form>
	</div>
</div>